<template>
	<view class="content">
		<navigabar title='申请加入批发商' />
		<image class="ui_bg" src="/static/img/bg_apply_pifa.png" mode=""></image>
		<view style="height: 240rpx;"></view>

		<view class="ui_input">
			<view class="ui_input_label">姓名<p style="color: #A7680F;">*</p>
			</view>
			<input class="ui_input_input" placeholder="请输入您的姓名" v-model="name" />
		</view>
		<view class="ui_input">
			<view class="ui_input_label">手机号码<p style="color: #A7680F;">*</p>
			</view>
			<input class="ui_input_input" placeholder="请输入您的手机号码" v-model="phone" />
		</view>
		<view class="ui_input">
			<view class="ui_input_label">区域<p style="color: #A7680F;">*</p>
			</view>
			<view class="ui_input_select">
				<view class="ui_input_select_item" @click="area = 0">
					<image class="ui_input_select_item_icon"
						:src="area==0?'/static/img/icon_select.png':'/static/img/icon_un_select.png'" mode=""></image>
					<view class="ui_input_select_item_text">市</view>
				</view>
				<view class="ui_input_select_item" @click="area = 1">
					<image class="ui_input_select_item_icon"
						:src="area==1?'/static/img/icon_select.png':'/static/img/icon_un_select.png'" mode=""></image>
					<view class="ui_input_select_item_text">区</view>
				</view>
			</view>
		</view>
		<view class="ui_input">
			<view class="ui_input_label">所在地址<p style="color: #A7680F;">*</p>
			</view>
			<input class="ui_input_input" placeholder="请输入您的地址" v-model="addr" />
		</view>
		<view style="height: 40rpx;"></view>
		<view class="ui_xiyi" @click=" agree = !agree">
			<image class="ui_xiyi_icon" :src="agree==0?'/static/img/icon_select.png':'/static/img/icon_un_select.png'"
				mode=""></image>
			<view class="ui_xiyi_text">阅读并同意<p>《用户服务协议》</p>和<p>《隐私政策》</p></view>
		</view>
		<view class="ui_xiyi">
			<view class="ui_xiyi_text"><p>*</p>请您放心填写，我们将对您的隐私进行严格保护阅</view>
		</view>
		
		<view style="height: 140rpx;"></view>
		
		
		<view class="ui_btn">提交申请</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				name: '',
				phone: '',
				addr: '',
				area: 0,
				agree: 0
			}
		},
		methods: {

		}
	}
</script>

<style lang="less">
	.content {
		width: 750rpx;
		position: relative;
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: center;

		.ui_bg {
			position: absolute;
			top: 0;
			left: 0;
			width: 750rpx;
			height: 480rpx;
			z-index: 88;
		}
		
		.ui_btn {
			position: fixed;
			bottom: 50rpx;
			left: 30rpx;
			width: 690rpx;
			line-height: 90rpx;
			text-align: center;
			background: linear-gradient(90deg, #C7974E, #986B28);
			border-radius: 45rpx;
			font-family: PingFang SC;
			font-weight: bold;
			font-size: 32rpx;
			color: #FFFFFF;
		}

		.ui_xiyi {
			margin-top: 20rpx;
			z-index: 89;
			width: 692rpx;
			margin-left: 20rpx;
			display: flex;
			align-items: center;

			&_icon {
				width: 36rpx;
				height: 36rpx;
				margin-right: 10rpx;
			}

			&_text {
				display: flex;
				font-family: PingFang SC;
				font-weight: 500;
				font-size: 26rpx;
				color: #333333;
			}
			p {
				color: #9F6F26;
			}
		}

		.ui_input {
			z-index: 89;
			width: 714rpx;
			background: #FFFFFF;
			border-radius: 10rpx;
			display: flex;
			flex-direction: column;
			margin-top: 20rpx;
			padding: 35rpx 20rpx 10rpx 20rpx;

			&_label {
				margin-left: 12rpx;
				display: flex;
				font-family: PingFang SC;
				font-weight: bold;
				font-size: 30rpx;
				color: #333333;
			}

			&_input {
				width: 654rpx;
				height: 54rpx;
				padding: 8rpx 12rpx;
				background: #fff;
				border-radius: 10rpx;
			}

			&_select {
				width: 100%;
				height: 54rpx;
				display: flex;
				align-items: center;

				&_item {
					flex: 1;
					display: flex;
					font-family: PingFang SC;
					font-weight: 500;
					font-size: 28rpx;
					color: #333333;

					&_icon {
						width: 36rpx;
						height: 36rpx;
						margin-left: 140rpx;
						margin-right: 10rpx;
					}
				}
			}
		}
	}
</style>